<?php
class Block_Media_Recent extends Block_Decorator {
	protected $_item = null;
	
	public function getItems() {
		if (!$this->_item) $this->_item = App::entity('media')
			->getCollection()
			->addAttributeToSort('created_at', 'desc')
			->getSelect(0, 5);
		return $this->_item;
	}
}